﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeHouse.Server.Dto
{
    /// <summary>
    /// json传值管理
    /// </summary>
    public class jsonManager
    {
        public int code { set; get; }
        public string msg { set; get; }
        public object data { set; get; }
    }

    /// <summary>
    /// 上传文件时使用的帮助类
    /// </summary>
    public class uploadingFileHelp
    {
        /// <summary>
        /// 文件名
        /// </summary>
        public string name{set;get;}
        /// <summary>
        /// 项目编号
        /// </summary>
        public string T_ReportNumber{set;get;}
        /// <summary>
        /// 文件流
        /// </summary>
        public string data{set;get;}
        /// <summary>
        /// 传输的excel是哪一个表;1代表Excel估价计算单；
        /// </summary>
        public int type { set; get; }
    }


    public class TrackRecords
    {
        /// <summary>
        /// 项目号
        /// </summary>
        public string T_ReportNumber { set; get; }
        /// <summary>
        /// 估价目的（字典）
        /// </summary>
        public int T_ValuationPurpose { set; get; }
        /// <summary>
        /// 估价师（从员工表中选择）默认为勘察员
        /// </summary>
        public string T_ValuationName { set; get; }
        /// <summary>
        /// 估价单价评估单价(元/㎡) 
        /// </summary>
        public string T_ValuationPrice { set; get; }
        /// <summary>
        /// 评估总值(元) --'=评估单价*建筑面积,精准到百元位 
        /// </summary>
        public string T_Valueofassessment { set; get; }
        /// <summary>
        /// 最高抵押额(元)
        /// </summary>
        public string T_MaximumMortgage { set; get; }
        /// <summary>
        /// 抵押风险率
        /// </summary>
        public string T_Mortgageriskrate { set; get; }
        /// <summary>
        /// 看房联系人
        /// </summary>
        public string T_Linkman { set; get; }
        /// <summary>
        /// 房屋剩余年限 （单位年：如30年）
        /// </summary>
        public string T_Loanyear { set; get; }
        /// <summary>
        /// 建筑面积(㎡)  
        /// </summary>
        public int T_Builtuparea { set;get;}
        /// <summary>
        /// 估价时点
        /// </summary>
        public string T_ValuationDate { set; get; }
        /// <summary>
        /// 贷款额度（单位万元：如50万元）
        /// </summary>
        public string T_Loanlimit { set; get; }
        /// <summary>
        /// 实际交易价（单位万元：如500万元）
        /// </summary>
        public string T_Actual { set; get; }
        /// <summary>
        /// 房屋坐落
        /// </summary>
        public string T_Located { set; get; }
        /// <summary>
        /// 房屋用途（字典）
        /// </summary>
        public string T_PurposeID { set; get; }
        /// <summary>
        /// 报告类型（字典）
        /// </summary>
        public string T_ReportID { set; get; }
        /// <summary>
        /// 登记员(房产登记者,当期系统登录人)
        /// </summary>
        public string T_Iid { set; get; }
        /// <summary>
        /// 状态 0:待约勘，1:待查勘, 2:已查勘，3、待审核, 4:初审未通过，5:初审通过，6:终审未通过，7:终审通过；
        /// </summary>
        public int T_State { set; get; }
        /// <summary>
        /// 借款人姓名
        /// </summary>
        public string T_Name { set; get; }
        /// <summary>
        /// 借款人身份证号
        /// </summary>
        public string T_Idcard { set; get; }
        /// <summary>
        /// 借款人电话
        /// </summary>
        public string T_Phone { set; get; }
        /// <summary>
        /// 审核内容
        /// </summary>
        public string T_FirstIdea { set; get; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public string examine_State { set; get; }
        /// <summary>
        /// 审核日期
        /// </summary>
        public string T_date { set; get; }
        /// <summary>
        /// 0 初审记录，1终审记录
        /// </summary>
        public string T_Type { set; get; }
       
        /// <summary>
        /// 抵押物权益状况-登记日期
        /// </summary>
        public string T_Date { set; get; }
        
        /// <summary>
        /// 员工身份证号
        /// </summary>
        public string T_IDcard { set; get; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string T_Dname { set; get; }
        /// <summary>
        /// 备注
        /// </summary>
        public string T_Depremark { set; get; }
        /// <summary>
        /// 部门表角色状态；1代表启用，2代表禁用
        /// </summary>
        public string T_Dstate { set; get; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string T_Rname { set; get; }
        /// <summary>
        /// 角色表备注
        /// </summary>
        public string T_Remark { set; get; }
        /// <summary>
        /// 角色表角色状态；1代表启用，2代表禁用
        /// </summary>
        public string T_Rstate { set; get; }

    }


    /// <summary>
    /// 传值帮助类
    /// </summary>
    public class byValueHelper
    {
        /// <summary>
        /// 项目编号
        /// </summary>
        public string T_ReportNumber { set; get; }
      /// <summary>
      /// 估价目的
      /// </summary>
        public int T_ValuationPurpose { set; get; }
    /// <summary>
    /// 估价师
    /// </summary>
        public string T_ValuationName { set; get; }
    }


    /// <summary>
    /// 大型传值帮助类
    /// </summary>
    public class bigByValueHelper
    {
        /// <summary>
        /// 项目号
        /// </summary>
        public string T_ReportNumber { set; get; }
        /// <summary>
        /// 存量房屋买卖合同
        /// </summary>
        public Collateral_BusinessContract businessContract { set; get; }
        /// <summary>
        /// 中华人民共和国税收完税证明
        /// </summary>
        public Collateral_Taxcertificate taxcertificate { set; get; }
        /// <summary>
        /// 不动产权证书
        /// </summary>
        public Collateral_Realestate realestate { set; get; }
        /// <summary>
        /// 房屋所有权证书
        /// </summary>
        public Collateral_ownership ownership { set; get; }
        /// <summary>
        /// 抵押物权益状况(抵押物评估登记基本信息表)
        /// </summary>
        public Collateral_Personal personal { set; get; }
        /// <summary>
        /// 员工信息表
        /// </summary>
        public System_Staff staff { set; get; }
        /// <summary>
        /// 抵押物区位状况表（区位坐落）
        /// </summary>
        public Collateral_Zone zone { set; get; }
        /// <summary>
        /// 小区状况表（小区）
        /// </summary>
        public Collateral_Community community { set; get; }
        /// <summary>
        /// 部门表
        /// </summary>
        public System_Department department { set; get; }
        /// <summary>
        /// 角色表
        /// </summary>
        public System_Role role { set;get;}
        /// <summary>
        /// 创建公共建筑部位表 （楼）
        /// </summary>
        public Collateral_Facility facility { set; get; }
        /// <summary>
        /// 创建户内部分表（房子）
        /// </summary>
        public Collateral_Indoor indoor { set; get; }
        /// <summary>
        /// 图片表 （图片）
        /// </summary>
        public List<Collateral_SitePicture> sitePicture { set; get; }
        /// <summary>
        /// 借款人信息表
        /// </summary>
        public List<Collateral_Borrower> borrower { set; get; }
    }

}
